<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ page session="false" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.net.test.vo.HaVO" %>

<script>
function go_save(){
	var frm = document.writeFrm;
	frm.fileNmtxt.value = frm.fileNm.value;
	frm.action = "/haInsert.ncb";
	frm.submit();
	
}
</script>


<br />
<h1>게시판 글쓰기</h1> 
<br />

<form name="writeFrm" method="POST" >

	<table border="1" style="width:650px;">
		<tr>
			<td>제목 :</td>
			<td><input type="text" name="title" style="width:98%;"/></td>
		</tr>
		<tr>
			<td>내용 :</td>
			<td><textarea style="width:98%; height:200px;" name="contents"  ></textarea></td>
		</tr>
		<tr>
			<td>이미지 등록  :</td>
			<td><input type="file" name= "fileNm" style="width:98%;"/></td>
			<input type="hidden" name= "fileNmtxt" />
		</tr>
	</table>
	
	<input type="button" value="등록" onclick="javascript:go_save();" />
	
	<br /><br /><br />

</form>





